home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / oldwish / RCS / wish.man,v < prev    next >
Encoding:
Text File  |  1989-01-20  |  10.2 KB  |  269 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.2
  10. date     89.01.19.16.44.25;  author mgbaker;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     89.01.17.23.44.26;  author mgbaker;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @Initial manual page for wish.
  22. @
  23.  
  24.  
  25. 1.2
  26. log
  27. @Added warnings about broken options.
  28. @
  29. text
  30. @' Copyright 1989 Regents of the University of California
  31. ' Permission to use, copy, modify, and distribute this
  32. ' documentation for any purpose and without fee is hereby
  33. ' granted, provided that this notice appears in all copies.
  34. ' The University of California makes no representations about
  35. ' the suitability of this material for any purpose.  It is
  36. ' provided "as is" without express or implied warranty.
  37. ' $Header: /a/newcmds/wish/RCS/wish.man,v 1.1 89/01/17 23:44:26 mgbaker Exp Locker: mgbaker $ SPRITE (Berkeley)
  38. .so \*(]ltmac.sprite
  39. .HS WISH cmds
  40. .BS
  41. .SH NAME
  42. wish \- Window shell and directory browser for X windows
  43. .SH SYNOPSIS
  44. .nf
  45. \fBwish\fR [\fIoptions\fR] [\fIdirectory\fR]
  46. .SH OPTIONS
  47. .IP "\fB\-nopick\fR" 14
  48. Configure \fBwish\fR so that it will not automatically pick an initial window
  49. size.  Due to X11 changes, this option is temporarily misbehaving.
  50. .IP "\fB\-resize\fR" 14
  51. Configure \fBwish\fR so that it will automatically resize a window whenever it
  52. thinks the window's contents have changed in such a way that another
  53. size would be better.  Due to X11 changes, this option is temporarily
  54. misbehaving.
  55. .IP "\fB\-empty\fR" 14
  56. Display headers for file groups that don't match any files.  The default
  57. is to display headers for file groups that contain files.
  58. .IP "\fB\-debug\fR" 14
  59. Print debug messages and do not fork into the background.  This option is
  60. primarily useful for debugging \fBwish\fR.
  61. .BE
  62. .SH DESCRIPTION
  63. .PP
  64. \fBWish\fR is a command shell and directory browser that uses the facilities
  65. of the X window system, the Sx supplementary library, and the Tcl command
  66. interpreter.  It displays a window containing a configurable list of files
  67. in the directory
  68. specified on the command line, or the directory in which it is started,
  69. if the user does not specify a command-line directory.  Because \fBwish\fR uses
  70. the Sx and Tcl facilities, its selection and other capabilities are
  71. compatible with the \fBmx\fR editor and the \fBtx\fR terminal emulator.
  72. .LP
  73. Commands are invoked through menus and key and mouse button bindings.  All
  74. three of these methods are configurable by the user, because all three of
  75. these methods actually invoke the commands through the Tcl command interpreter.
  76. .LP
  77. \fBWish\fR groups files on its display according to rules provided by the
  78. user.  These rules can include pattern-matching on the file names and various
  79. other properties, including arbitrary rules that the user can specify through
  80. Tcl procedures.  The default list of files contains all the files in the
  81. directory. (Another way of saying this is that the default matching rule
  82. is the pattern \fB*\fR.)  The user can choose attributes he wants displayed
  83. for the files, such as access times and sizes, and he can sort the files
  84. according to different attributes as well.
  85. .LP
  86. \fBWish\fR also provides user-configurable command binding that includes
  87. keyboard bindings, mouse-button bindings and also per-file-group bindings.  The
  88. latter makes it possible, for instance, to use the left mouse button to invoke
  89. a compiler by clicking on \fB*.c\fR files, but a text formatter when clicking
  90. on \fB*.tex\fR files.
  91. .LP
  92. The following sections of this manual page describe the configuration, options,
  93. and possible commands for \fBwish\fR.
  94. .LP
  95.  
  96. .SH  CONFIGURATION OPTIONS AND STARTUP COMMANDS
  97. .PP
  98. Currently most options are specified via a \fB.Xdefaults\fR file and
  99. a \fB.wish\fR file.  More command-line support will be added eventually.
  100. The following list gives the options that can be set in a
  101. user's \fB.Xdefaults\fR file, which is the general X-application startup
  102. file.  The
  103. second section describes options configurable from a wish-specific startup
  104. file, \fB.wish\fR.  \fBWish\fR will startup pleasantly even if one or both
  105. of these files are missing, but it will choose its own default configuration
  106. in this case.
  107. .SH 2 X DEFAULT OPTIONS
  108. .IP "\fBBackground\fR" 16
  109. General background color for \fBwish\fR window.
  110. .IP "\fBForeground\fR" 16
  111. General foreground color for \fBwish\fR window.
  112. .IP "\fBBorder\fR" 16
  113. Color for border of \fBwish\fR window.
  114. .IP "\fBBorderWidth\fR" 16
  115. Width of border around \fBwish\fR window.
  116. .IP "\fBSelection\fR" 16
  117. Color of selection highlighting.
  118. .IP "\fBTitleBackground\fR" 16
  119. Background color of title bar.
  120. .IP "\fBTitleForeground\fR" 16
  121. Foreground color of title bar.
  122. .IP "\fBTitleBorder\fR" 16
  123. Color of border around title bar.
  124. .IP "\fBTxBackground\fR" 16
  125. Background color of attached tx window.
  126. .IP "\fBTxForeground\fR" 16
  127. Foreground color of attached tx window.
  128. .IP "\fBTxBorder\fR" 16
  129. Border color for attached tx window.
  130. .IP "\fBMenuBackground\fR" 16
  131. Background color for menu bar.
  132. .IP "\fBMenuForeground\fR" 16
  133. Foreground color for menu bar.
  134. .IP "\fBSortBackground\fR" 16
  135. Background color for bar specifying current file-sorting method.
  136. .IP "\fBSortForeground\fR" 16
  137. Foreground color for bar specifying current file-sorting method.
  138. .IP "\fBFieldsBackground\fR" 16
  139. Background color for bar specifying displayed file attributes.
  140. .IP "\fBFieldsForeground\fR" 16
  141. Foreground color for bar specifying displayed file attributes.
  142. .IP "\fBEntryBackground\fR" 16
  143. Background color for bar allowing command entry.
  144. .IP "\fBEntryForeground\fR" 16
  145. Foreground color for bar allowing command entry.
  146. .IP "\fBScrollBackground\fR" 16
  147. Background color for scroll bar.
  148. .IP "\fBScrollForeground\fR" 16
  149. Foreground color for scroll bar.
  150. .IP "\fBScrollElevator\fR" 16
  151. Color for elevator in scroll bar.
  152. .IP "\fBGeometry\fR" 16
  153. Window geometry.
  154. .IP "\fBFont\fR" 16
  155. Font to use in \fBwish\fR window.
  156. .IP "\fBTitleFont\fR" 16
  157. Font to use in title bar.
  158. .SH 2 WISH STARTUP OPTIONS
  159. .PP
  160. The \fBwish\fR startup file, \fB.wish\fR, is used for configuring the behavior
  161. of \fBwish\fR initially, and for changing its behavior if the user changes
  162. direcotories.  Thus, each directory may have a different \fB.wish\fR file, if
  163. this is useful.
  164. .IP "\fB selection binding\fR" 20
  165. The Tcl command
  166. .br
  167. \fBvar selectionButton \fIbutton\fR
  168. .br
  169. will set \fIbutton\fR
  170. (left, right, {shift right}, etc) to be the mouse
  171. button used for selecting files and text in a \fBwish\fR window.
  172. .IP "\fBfile sorting\fR" 20
  173. The Tcl command \fBsortFiles \fImethod\fR will configure \fBwish so that
  174. inside a file group, it sorts the files by \fImethod\fR.  The default method
  175. is \fBalpha\fR for alphabetical sorting, but files may also be sorted by
  176. access times, data-modification times, size etc.  They may also be sorted
  177. in reverse order for any method.
  178. .IP "\fBdisplay fields\fR" 20
  179. The Tcl command \fBsetFields \fIfieldname\fR will add the field \fIfieldname\fR
  180. to the file attributes \fBwish\fR is currently displaying.  The default
  181. field is \fBname\fR, but other fields are \fBaccessTime\fR, \fBsize\fR, etc.
  182. \fBWish\fR will try to interpret many types of capitalizations and
  183. abbreviations for each field name.
  184. .IP "\fBdefining groups\fR" 20
  185. The Tcl command \fBdefineGroup\fR is used to define a list of files to
  186. group together on the display.  The command has two options:
  187. \fBdefineGroup comparison \fIpattern\fR create a group that chooses files
  188. using the matching rule \fIpattern\fR on file names.  For example, the command
  189. .sp
  190. \fBdefineGroup comparison B*.ms\fR
  191. .sp
  192. will create a group containing all files starting with the letter `B' and
  193. ending with the suffix `.ms'.  The other option, for arbitrary matching
  194. rules, is
  195. .br
  196. \fBdefineGroup proc \fITcl procedure\fR,
  197. .br
  198. where the given
  199. \fITcl procedure\fR must have a name, which will be the name displayed in the
  200. file group header, and parameter which takes the name of a file to test
  201. against the rule.  The rule is in the Tcl procedure body, and it must
  202. return 1 if the file matches, 0 if not, and a value less than 0 if an error
  203. occurs.  For example, the following defineGroup command will choose all
  204. files beginning with a `.', but excluding the files `.' and `..'.
  205. .sp
  206. \fBdefineGroup proc {proc DotFiles filename {
  207. .br
  208.     return [pattern {!(.) && !(..) && (.*)} $filename]
  209. .br
  210. }}\fR
  211. .sp
  212. The procedure \fBpattern\fR can be called to do arbitrary filename matching.
  213. .IP "\fBper-group command bindings\fR" 14
  214. The command \fBgroupBind \fIgroupName binding command\fR is used to bind
  215. a command, \fIcommand\fR, to a mouse binding, \fIbinding\fR,
  216. for files in a particular group, \fIgroupName\fR.  Following the usual
  217. Tcl syntax, if the command or the binding use more than one word, they
  218. must be enclosed in braces.  For instance, the following will bind the mouse
  219. button \fBshift middle\fR to execute the shell command \fBcc -g -c filename\fR,
  220. on files in the group with suffix `.c'.  The Tcl variable \fB$pointed\fR holds
  221. the name of the file pointed to with the command binding.
  222. .sp
  223. \fBgroupBind *.c {shift middle} {exec cc -g -c $pointed}\fR
  224. .sp
  225. The command \fBexec\fR is used to escape to the user's outside shell (C-shell,
  226. etc), but commands internal to \fBwish\fR can be specified directly.
  227. .IP "\fBkeyboard bindings\fR" 14
  228. Key bindings that aren't specific to particular file groups are specified
  229. with the same mechanism that \fBmx\fR and \fBtx\fR.  See their documentation
  230. for details.
  231. .IP "\fBmenu creation\fR" 14
  232. Menus are created using the same mechanism that \fBmx\fR and \fBtx\fR use.
  233. See their documentation for details.
  234.  
  235. .SH OTHER COMMANDS
  236. .PP
  237. Other commands can be found on the default set of menus.  These include
  238. commands to change directories, open new \fBwish\fR windows in other
  239. directories, etc.
  240. .LP
  241. Some commands can be invoked by using the mouse or by typing in particular
  242. places.  For instance, to change directories, the user need not use the
  243. \fBchangeDirectory\fR command from a menu or from his key bindings.  He can
  244. instead type the new directory name into the title bar that displays the
  245. current directory.  Similarly, typing in the bars that display the
  246. name of a group will change the pattern used for matching files for that group.
  247. .SH KEYWORDS
  248. command shell, X windows, directory browser
  249. @
  250.  
  251.  
  252. 1.1
  253. log
  254. @Initial revision
  255. @
  256. text
  257. @d9 1
  258. a9 1
  259. ' $Header: /sprite/lib/forms/RCS/proto.man,v 1.3 89/01/09 11:43:01 ouster Exp $ SPRITE (Berkeley)
  260. d22 1
  261. a22 1
  262. size.
  263. d26 2
  264. a27 1
  265. size would be better.
  266. @
  267.